package com.zycfc.zsf.boot.job.common;

import java.util.*;
import com.zycfc.zsf.boot.job.*;
import java.util.concurrent.*;

public class JobInfPool
{
    private static Map<String, ZsfJobProperties> data;
    private static Map<String, String> jobBeans;
    
    public static void put(final String key, final ZsfJobProperties val) {
        JobInfPool.data.put(key, val);
    }
    
    public static ZsfJobProperties get(final String key) {
        return JobInfPool.data.get(key);
    }
    
    public static void putBeans(final String key, final String val) {
        JobInfPool.jobBeans.put(key, val);
    }
    
    public static String getBeans(final String key) {
        return JobInfPool.jobBeans.get(key);
    }
    
    static {
        JobInfPool.data = new ConcurrentHashMap<String, ZsfJobProperties>();
        JobInfPool.jobBeans = new ConcurrentHashMap<String, String>();
    }
}
